package com.example.event.event;

import com.example.pojo.entity.event.Message;
import org.springframework.context.ApplicationEvent;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/9/20 22:18
 */
public class CustomEvent extends ApplicationEvent {
    private Message message;
    public CustomEvent(Object source,Message message) {
        super(source);
        this.message=message;
    }

    public Message getMessage() {
        return message;
    }
}
